<template>
  <v-app>
    <v-toolbar
      color="primary"
      app
      fixed
      absolute
    >
        <v-toolbar-title class="white--text">
          <v-btn flat color="white" largep href="/">{{ siteTitle }}</v-btn>
        </v-toolbar-title>
        <v-spacer></v-spacer>
        <v-btn flat color="white" @click="about_sheet = !about_sheet">
          <v-icon>person_outline</v-icon>About me
        </v-btn>
      </v-toolbar>
    <v-content>
      <v-container>
        <router-view></router-view>
      </v-container>
    </v-content>
    <v-bottom-sheet v-model="about_sheet">
      <v-list>
        <h3><v-avatar><img src="@/assets/me.jpg"></v-avatar>&nbsp;&nbsp;About me</h3>
        <v-list-tile>
        </v-list-tile>
      </v-list>
    </v-bottom-sheet>
    <v-content>
      <router-view/>
    </v-content>
    <v-footer app absolute inset clipped-left class="pa-3">
      <v-flex text-xs-center grey--text>
        蜀ICP备18004931 张富强 © {{ new Date().getFullYear() }}
      </v-flex>
    </v-footer>
  </v-app>
</template>

<script>
export default {
  name: 'App',
  data () {
    return {
      drawer: true,
      about_sheet: false,
      mini: true,
      items: [
        { title: 'Home', icon: 'home', to: '/home' },
        { title: 'Tech & Fun', icon: 'keyboard', to: '/notes' },
        { title: 'Photography & Fun', icon: 'camera_alt', to: '/photo' },
        { title: 'Admin', icon: 'tv', to: '/artical_manage' }
      ]
    }
  },
  methods: {
    manageTags () {
      console.log('manageTags')
    }
  },
  computed: {
    siteTitle () {
      return this.$store.state.global.title
    },
    myName () {
      return this.$store.state.global.me
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
#head, #head1 {
  cursor: pointer;
}
.btn {
  text-transform: none !important;
}
</style>
